<div class="rounded table" style="width: 98%;">
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="box_top">
        <thead class="thead">
            <tr class="space">
                <th colspan="10">添加角色</th>
            </tr>
        </thead>
    </table>
    <div class="contentbox">
        <form action="{:U('Admin/Role/doAdd')}" method="post" id="doEditAdmin" class="formvalidate">
            <table class="list" cellpadding="0" cellspacing="1" border="0">
                <tr>
                    <td class="name" width="150">
                        <label class="validation"><span class="spanMsg">*</span>角色名称:</label>
                    </td>
                    <td>
                        <input name="name" type="text" class="input rounded" value="" size="30" maxlength="50" validate='{ required:true,username:true,remote:"{:U("Admin/Role/checkRoleName")}"}' /> 
                    </td>
                    <td class="field"></td>
                </tr>
                <tr>
                    <td class="name">权限设置：</td>
                    <td style="padding:12px 8px;">
                        <p style="padding-bottom:0px;margin-bottom: 0px;line-height: 20px;">
                            1. 如果要指定当前模块下的所有权限，可选中该模块名称 <br />
                            2. 如果要指定当前模块下的操作权限，可选中该模块的操作名称
                        </p>
                    </td>
                    <td class="field"></td>
                </tr>
                <tr>
                    <td class="name" style="text-align: center;font-weight: bold;">模块</td>
                    <td colspan="2" style="text-align: center;font-weight: bold;">操作</td>
                </tr>
                <volist name="access_list" id="list">
                    <tr>
                        <td>
                            <p style="padding-bottom:0px; text-align: left;">
                                <label>
                                    <input class="module-item" type="checkbox" name="access_node[]" value="{$list.id}">
                                    <span>&nbsp;{$list.module_name}&nbsp;</span>
                                </label>
                            </p>
                        </td>
                        <td colspan="2">
                            <p style="padding-bottom:0px;">	
                                <label><input class="select-all" type="checkbox">&nbsp;<span>全选</span></label>
                                <volist name="list.actions" id="action">
                                    <label>
                                        <input class="action-item" type="checkbox" name="access_node[]" value="{$action.id}">
                                        <span>&nbsp;{$action.action_name}</span>
                                    </label>&nbsp;&nbsp;
                                </volist>
                            </p>
                        </td>
                    </tr>
                </volist>
                
            </table>

            <table class="table top_line">
                <tr>
                    <td align="right" height="60">
                        <input id="submit" class="submit" type="submit" value="提交">
                    </td>
                    <td width="80"></td>
                    <td>
                        <input type="reset" id="reset" class="submit reset" value="重置">
                    </td>
                </tr>
            </table>		
        </form>


    </div>
</div>
